$(function() {

	// Bind the event
	$(window).hashchange(function() {
		var hash = location.hash;
		$('.active').removeClass('active')

		if(hash == "#!/" || hash == "") {
			$('#home').addClass('active');
			$('#content').load('main.html');
		} else {
			switch(hash) {
				case "#!/resume/":
					$('#resume').addClass('active');
					$('#content').load('resume.html');
			}
		}
	})

	// Trigger the event (useful on page load)
	$(window).hashchange();
});